package com.detech.sboh.base.satoken.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 用户密码相关配置
 *
 */
@Configuration
@ConfigurationProperties(prefix = "user.password")
public class UserPasswordProperties {

    /**
     * 是否开启密码重试次数检查
     */
    private Boolean pwdCheckEnable = false;
    /**
     * 密码最大错误次数
     */
    private Integer maxRetryCount;

    /**
     * 密码锁定时间（默认10分钟）
     */
    private Integer lockTime;

    /**
     * 用户初始密码
     */
    private String defaultPwd;

    public Boolean getPwdCheckEnable() {
        return pwdCheckEnable;
    }

    public void setPwdCheckEnable(Boolean pwdCheckEnable) {
        this.pwdCheckEnable = pwdCheckEnable;
    }

    public Integer getMaxRetryCount() {
        return maxRetryCount;
    }

    public void setMaxRetryCount(Integer maxRetryCount) {
        this.maxRetryCount = maxRetryCount;
    }

    public Integer getLockTime() {
        return lockTime;
    }

    public void setLockTime(Integer lockTime) {
        this.lockTime = lockTime;
    }

    public String getDefaultPwd() {
        return defaultPwd;
    }

    public void setDefaultPwd(String defaultPwd) {
        this.defaultPwd = defaultPwd;
    }
}
